package com.emapp.lccode.bean

import androidx.room.Entity
import androidx.room.PrimaryKey
import java.io.Serializable

@Entity(tableName = "users")
data class UserKt(
    @PrimaryKey val key: Int =1,
    var token: String,
    var did: Int,
    var name: String,
    var position_id: Int,
    var admin_id: Int,
    var reg_pwd: String,
    var thumb: String,
    var province: String?,
    var city: String?,
    var district: String?,
    var controll_sta: Int?=0,//controll_sta 判断是否是监理单位 0不是 1监理单位 2设计单位
    var area_city: String?
) : Serializable{
    fun isChecker():Boolean{
        if (controll_sta == null){
            return true
        }
        return controll_sta==0
    }
}
